/// timestamp : 1256832000
/// open : 42.0
/// high : 64.0
/// low : 35.01
/// close : 44.0
/// volume : 2.3608562E7

class StockList {
  late int timestamp;
  late double open;
  late double high;
  late double low;
  late double close;
  late double volume;

  static StockList? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    StockList stockListBean = StockList();
    stockListBean.timestamp = map['timestamp'];
    stockListBean.open = map['open'];
    stockListBean.high = map['high'];
    stockListBean.low = map['low'];
    stockListBean.close = map['close'];
    stockListBean.volume = map['volume'];
    return stockListBean;
  }

  Map toJson() => {
    "timestamp": timestamp,
    "open": open,
    "high": high,
    "low": low,
    "close": close,
    "volume": volume,
  };

}